package com.groupbuying.currency.producer.service;

import com.groupbuying.currency.producer.domain.CurrencyCustomerDO;
import com.groupbuying.currency.producer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 积分会员表
 * 
 * @author ywxd
 * @email yuwenxiaodong@126.com
 * @date 2019-04-15 17:20:51
 */
public interface CurrencyCustomerService {
	
	CurrencyCustomerDO get(String customerId);
	
	List<CurrencyCustomerDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CurrencyCustomerDO currencyCustomer);
	
	int update(CurrencyCustomerDO currencyCustomer);
	
	int remove(String customerId);
	
	int batchRemove(String[] customerIds);

	/**
	* Description 创建积分账户 <br>
	*
	* @author Ywxd <br>
	* @param customerID
	* @return customerID
	* @createDate 2019/4/15 17:41<br>
	**/
	CurrencyCustomerDO createCurrencyCustomer(String customerID);

	/**
	 * Description 修改积分支付密码
	 **/
	ApiResult changeCurrencyPwd(Map<String, Object> map);

	/**
	 * Description 校验支付密码
	 **/
	Boolean checkCurrencyPwd(String customerId, String password);


}
